package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.NetDevice;
import com.wanlian.netty.msg.MsgType;

/**
 * 获取某台设备的限速
 */
public class DeviceLimitGetReq extends BaseMsg {

    private NetDevice device;

    public DeviceLimitGetReq(){
        super();
        this.setType(MsgType.DEVICE_LIMITSPEED_REQ);

    }

    public NetDevice getDevice() {
        return device;
    }

    public void setDevice(NetDevice device) {
        this.device = device;
        this.setContent(JsonStringUtil.writeValueAsString(device));
    }
}
